<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2024/6/4
  Time: 8:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加与修改</title>
</head>
<body>
<form action="/shuihu?userReq=save" method="post">
    <table>
        <tr>
            <td><input type="hidden" name="id" value="${shuiHu.id}"></td>
        </tr>
        <tr>
            <td>人物编号</td>
            <td><input type="text" name="pnum" value="${shuiHu.pnum}"></td>
        </tr>
        <tr>
            <td>人物姓名</td>
            <td>
                <input type="text" name="pname" value="${shuiHu.pname}">
            </td>
        </tr>
        <tr>
            <td>武力值</td>
            <td><input type="text" name="fighting" value="${shuiHu.fighting}"></td>
        </tr>
        <tr>
            <td>财富值</td>
            <td><input type="text" name="riches" value="${shuiHu.riches}"></td>
        </tr>
        <tr>
            <td>部门</td>
            <td>
                <select name="deptNo">
                    <option value="10" ${shuiHu.deptNo==10 ? 'selected' :''}>10</option>
                    <option value="20" ${shuiHu.deptNo==20 ? 'selected' :''}>20</option>
                    <option value="30" ${shuiHu.deptNo==30 ? 'selected' :''}>30</option>
                    <option value="40" ${shuiHu.deptNo==40 ? 'selected' :''}>40</option>
                    <option value="50" ${shuiHu.deptNo==50 ? 'selected' :''}>50</option>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="保存"></td>
        </tr>
    </table>
</form>
</body>
</html>
